class Candidat < ActiveRecord::Base
  has_many :actus, :dependent => :destroy
  has_one :user, :as => :compte
  accepts_nested_attributes_for :user
  validates_associated :user
  validates_presence_of :nom, :prenom, :naissance, :parti, :programme
end
